package model

type Role struct {
	Id         int64  `json:"id" gorm:"column:id"`
	Name       string `json:"name" gorm:"column:name"`
	Code       string `json:"code" gorm:"column:code"`
	Type       string `json:"type" gorm:"column:type"`
	CreatedBy  string `json:"created_by" gorm:"column:created_by"`
	Created    int64  `json:"created" gorm:"column:created"`
	IsPlatform string `json:"is_platform" gorm:"column:is_platform"`
}

// 设置表名
func (Role) TableName() string {
	return "role"
}
